package de.gwtprime.server.sql;

import javax.persistence.EntityManagerFactory;
import javax.persistence.Persistence;


/**
 * Use a singelton to get the EntityManagerFactory
 * @author jan
 *
 */
public enum HibernateEntityMangerSingeltonTest {

	 Instance;
	 
	 private static EntityManagerFactory entityManagerFactory = Persistence.
			 createEntityManagerFactory("de.gwtprime.test.jpa");
			 
	 
	 
	 public static EntityManagerFactory getEntityManagerFactory() {
		 return entityManagerFactory;
		 
	 }
	 
}
